package steampunk;

import steampunk.entities.LineFloor;
import steampunk.entities.PlayerEntity;
import steampunk.gui.GameFrame;

/**
 * The main class that starts off the whole program
 * @author garrett
 *
 */
public class Main {

	public static void main(String[] args) {
		GameVars vars = GameVars.getInstance();
		
		GameFrame frame = new GameFrame();
		frame.setVisible(true);
		
		MainEngine engine = new MainEngine();
		engine.start();
		
		PlayerControls pc = vars.getPlayerControls();
		
		PlayerEntity player = vars.getPlayer();
		
		
		// Testing
		LineFloor bigfloor = new LineFloor(30, vars.aspectHeight-5, vars.aspectWidth-60);
		bigfloor.setFallthrough(false);
		bigfloor.setStatic(true);
		
		LineFloor floor = new LineFloor(200, 400, 200);
		floor.setStatic(true);
		
		LineFloor floor2 = new LineFloor(500, 300, 100);
		floor2.setStatic(true);
		
		LineFloor floor3 = new LineFloor(425, 350, 50);
		floor3.setStatic(true);
		
		vars.addEntity(floor);
		vars.addEntity(floor2);
		vars.addEntity(floor3);
		vars.addEntity(bigfloor);
	}
}
